<div class="my">
    <c:if test="${empty userSession}">
        <div class="loginBtn" onclick="hrefJump('/user/login.jspx')">登录</div>
    </c:if>
    <c:if test="${not empty userSession}">
        <div class="userInfo">
            <p class="userName">${userSession.userName}</p>
            <p class="cellPhone">${userSession.cellPhone}</p>
            <p class="quiteBtn" onclick="quite()">退出帐号</p>
        </div>
    </c:if>
    <div>
        <ul>
            <li onclick="hrefJump('/user/userCenter.jspa')">个人信息</li>
            <li onclick="hrefJump('/user/changepw.jspa')">帐号信息</li>
            <li onclick="hrefJump('/order/list.jspa')">订餐记录</li>
            <li onclick="hrefJump('/repair/orderList.jspa')">报修记录</li>

            <li style="margin-top: 30px;background-image: none">
                联系电话&nbsp;&nbsp;&nbsp;010-66579009
            </li>
        </ul>
    </div>
</div>
<div class="ypfood-head">
    <div class="back-div" onClick="javascript :history.back(-1);"><img src="/statics/imgs/head-back.png?v=${params.ver}">
    </div>
    <div>
        <span class="title-span">个人中心</span>
    </div>
</div>
<script>
    function hrefJump(href){
        window.location.href = href;
    }
    function quite(){

        json("/user/loginOut.jspx", { }, function (data) {
            window.location.reload();
        });
    }
</script>